#!/usr/bin/python
#
# Copyright (C) 2008 rambla.be
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

try:
  from xml.etree import cElementTree as ElementTree
except ImportError:
  try:
    import cElementTree as ElementTree
  except ImportError:
    from elementtree import ElementTree

import atom
import rawsc
from rawsc import RAWS_NAMESPACE

class Name(rawsc.RawsBaseElement):
    """The RATS Profile Name element"""
    _tag = 'name'

def NameFromString(xml_string):
    return atom.CreateClassFromXMLString(Name, xml_string)


class Description(rawsc.RawsBaseElement):
    """The RATS description element"""
    _tag = 'description'

def DescriptionFromString(xml_string):
    return atom.CreateClassFromXMLString(Description, xml_string)


class Id(rawsc.RawsBaseElement):
    """The RATS id element"""
    _tag = 'id'

def IdFromString(xml_string):
    return atom.CreateClassFromXMLString(Id, xml_string)


class BaseUri(rawsc.RawsBaseElement):
    """The RATS base_uri element"""
    _tag = 'base_uri'

def BaseUriFromString(xml_string):
    return atom.CreateClassFromXMLString(BaseUri, xml_string)


class Cdn(rawsc.RawsBaseElement):
    """The RATS cdn element"""
    _tag = 'cdn'

def CdnFromString(xml_string):
    return atom.CreateClassFromXMLString(Cdn, xml_string)


class Method(rawsc.RawsBaseElement):
    """The RATS method element"""
    _tag = 'method'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Method, xml_string)


class MaxSize(rawsc.RawsBaseElement):
    """The RATS max_size element"""
    _tag = 'max_size'

def MaxSizeFromString(xml_string):
    return atom.CreateClassFromXMLString(MaxSize, xml_string)


class Params(rawsc.RawsBaseElement):
    """The RATS params element"""
    _tag = 'params'

def ParamsFromString(xml_string):
    return atom.CreateClassFromXMLString(Params, xml_string)



class Filename(rawsc.RawsBaseElement):
    """The RATS filename element"""
    _tag = 'filename'

def FilenameFromString(xml_string):
    return atom.CreateClassFromXMLString(Filename, xml_string)


class Updated(rawsc.RawsBaseElement):
    """The RATS description element"""
    _tag = 'updated'

def UpdatedFromString(xml_string):
    return atom.CreateClassFromXMLString(Updated, xml_string)


class ToBeRemoved(rawsc.RawsBaseElement):
    """The RATS id element"""
    _tag = 'to_be_removed'

def ToBeRemovedFromString(xml_string):
    return atom.CreateClassFromXMLString(ToBeRemoved, xml_string)


class OriginalLocation(rawsc.RawsBaseElement):
    """The RATS base_uri element"""
    _tag = 'original_location'

def OriginalLocationFromString(xml_string):
    return atom.CreateClassFromXMLString(OriginalLocation, xml_string)


class Status(rawsc.RawsBaseElement):
    """The RATS status element"""
    _tag = 'status'

def StatusFromString(xml_string):
    return atom.CreateClassFromXMLString(Status, xml_string)


class Input(rawsc.RawsBaseElement):
    """The RATS input element"""
    _tag = 'input'

def InputFromString(xml_string):
    return atom.CreateClassFromXMLString(Input, xml_string)


class Output(rawsc.RawsBaseElement):
    """The RATS output element"""
    _tag = 'output'

def OutputFromString(xml_string):
    return atom.CreateClassFromXMLString(Output, xml_string)


class Format(rawsc.RawsBaseElement):
    """The RATS format element"""
    _tag = 'format'

def FormatFromString(xml_string):
    return atom.CreateClassFromXMLString(Format, xml_string)


class SrcLocation(rawsc.RawsBaseElement):
    """The RATS src_location element"""
    _tag = 'src_location'

def SrcLocationFromString(xml_string):
    return atom.CreateClassFromXMLString(SrcLocation, xml_string)


class ImportLocation(rawsc.RawsBaseElement):
    """The RATS import_location element"""
    _tag = 'import_location'

def ImportLocationFromString(xml_string):
    return atom.CreateClassFromXMLString(ImportLocation, xml_string)


class TgtLocation(rawsc.RawsBaseElement):
    """The RATS tgt_location element"""
    _tag = 'tgt_location'

def TgtLocationFromString(xml_string):
    return atom.CreateClassFromXMLString(TgtLocation, xml_string)


class Startpos(rawsc.RawsBaseElement):
    """The RATS startpos element"""
    _tag = 'startpos'

def StartposFromString(xml_string):
    return atom.CreateClassFromXMLString(Startpos, xml_string)


class Endpos(rawsc.RawsBaseElement):
    """The RATS endpos element"""
    _tag = 'endpos'

def EndposFromString(xml_string):
    return atom.CreateClassFromXMLString(Endpos, xml_string)


class ClientPassthru(rawsc.RawsBaseElement):
    """The RATS client_passthru element"""
    _tag = 'client_passthru'

def ClientPassthruFromString(xml_string):
    return atom.CreateClassFromXMLString(ClientPassthru, xml_string)


class ClientInput(rawsc.RawsBaseElement):
    """The RATS client_input element"""
    _tag = 'client_input'

def ClientInputFromString(xml_string):
    return atom.CreateClassFromXMLString(ClientInput, xml_string)


class Transc(rawsc.RawsBaseElement):
    """The RATS transc element"""
    _tag = 'transc'

def TranscFromString(xml_string):
    return atom.CreateClassFromXMLString(Transc, xml_string)


class TranscMedia(rawsc.RawsBaseElement):
    """The RATS transc_media element"""
    _tag = 'transc_media'

def TranscMediaFromString(xml_string):
    return atom.CreateClassFromXMLString(TranscMedia, xml_string)


class Msg(rawsc.RawsBaseElement):
    """The RATS report msg element"""
    _tag = 'msg'

def MsgFromString(xml_string):
    return atom.CreateClassFromXMLString(Msg, xml_string)


class StartTime(rawsc.RawsBaseElement):
    """The RATS report start_time element"""
    _tag = 'start_time'

def StartTimeFromString(xml_string):
    return atom.CreateClassFromXMLString(StartTime, xml_string)


class EndTime(rawsc.RawsBaseElement):
    """The RATS report end_time element"""
    _tag = 'end_time'

def EndTimeFromString(xml_string):
    return atom.CreateClassFromXMLString(EndTime, xml_string)


class LocalUri(rawsc.RawsBaseElement):
    """The RATS report local_uri element"""
    _tag = 'local_uri'

def LocalUriFromString(xml_string):
    return atom.CreateClassFromXMLString(local_uri, xml_string)


class SrcFilesize(rawsc.RawsBaseElement):
    """The RATS report src_filesize element"""
    _tag = 'src_filesize'

def SrcFilesizeFromString(xml_string):
    return atom.CreateClassFromXMLString(SrcFilesize, xml_string)


class TgtFilesize(rawsc.RawsBaseElement):
    """The RATS report tgt_filesize element"""
    _tag = 'tgt_filesize'

def TgtFilesizeFromString(xml_string):
    return atom.CreateClassFromXMLString(TgtFilesize, xml_string)


class PublicUri(rawsc.RawsBaseElement):
    """The RATS report public_uri element"""
    _tag = 'public_uri'

def PublicUriFromString(xml_string):
    return atom.CreateClassFromXMLString(PublicUri, xml_string)


class ExportUri(rawsc.RawsBaseElement):
    """The RATS report export_uri element"""
    _tag = 'export_uri'

def ExportUriFromString(xml_string):
    return atom.CreateClassFromXMLString(ExportUri, xml_string)


class Username(rawsc.RawsBaseElement):
    _tag = 'username'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Username, xml_string)


class FirstName(rawsc.RawsBaseElement):
    _tag = 'first_name'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(FirstName, xml_string)


class LastName(rawsc.RawsBaseElement):
    _tag = 'last_name'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(LastName, xml_string)


class Email(rawsc.RawsBaseElement):
    _tag = 'email'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Email, xml_string)


class Password(rawsc.RawsBaseElement):
    _tag = 'password'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Password, xml_string)

    
class Category(rawsc.RawsBaseElement):
    _tag = 'category'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Category, xml_string)


class Container(rawsc.RawsBaseElement):
    _tag = 'container'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Container, xml_string)


class VideoCodec(rawsc.RawsBaseElement):
    _tag = 'video_codec'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCodec, xml_string)


class VideoBitrate(rawsc.RawsBaseElement):
    _tag = 'video_bitrate'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoBitrate, xml_string)


class VideoFps(rawsc.RawsBaseElement):
    _tag = 'video_fps'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoFps, xml_string)


class VideoWidth(rawsc.RawsBaseElement):
    _tag = 'video_width'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoWidth, xml_string)


class VideoHeight(rawsc.RawsBaseElement):
    _tag = 'video_height'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoHeight, xml_string)


class VideoAspectRatio(rawsc.RawsBaseElement):
    _tag = 'video_aspect_ratio'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoAspectRatio, xml_string)


class VideoDeinterlace(rawsc.RawsBaseElement):
    _tag = 'video_deinterlace'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoDeinterlace, xml_string)


class VideoCq(rawsc.RawsBaseElement):
    _tag = 'video_cq'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCq, xml_string)


class VideoPasses(rawsc.RawsBaseElement):
    _tag = 'video_passes'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoPasses, xml_string)


class VideoCropTop(rawsc.RawsBaseElement):
    _tag = 'video_crop_top'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCropTop, xml_string)


class VideoCropBottom(rawsc.RawsBaseElement):
    _tag = 'video_crop_bottom'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCropBottom, xml_string)


class VideoCropRight(rawsc.RawsBaseElement):
    _tag = 'video_crop_right'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCropRight, xml_string)


class VideoCropLeft(rawsc.RawsBaseElement):
    _tag = 'video_crop_left'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(VideoCropLeft, xml_string)


class AudioChannel(rawsc.RawsBaseElement):
    _tag = 'audio_channel'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioChannel, xml_string)


class AudioCodec(rawsc.RawsBaseElement):
    _tag = 'audio_codec'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioCodec, xml_string)


class AudioBitrate(rawsc.RawsBaseElement):
    _tag = 'audio_bitrate'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioBitrate, xml_string)


class AudioSampleRate(rawsc.RawsBaseElement):
    _tag = 'audio_sample_rate'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioSampleRate, xml_string)


class AudioPasses(rawsc.RawsBaseElement):
    _tag = 'audio_passes'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioPasses, xml_string)


class AudioTrackMapping(rawsc.RawsBaseElement):
    _tag = 'audio_track_mapping'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(AudioTrackMapping, xml_string)


class Hinting(rawsc.RawsBaseElement):
    _tag = 'hinting'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Hinting, xml_string)


class Overlay(rawsc.RawsBaseElement):
    _tag = 'overlay'

def MethodFromString(xml_string):
    return atom.CreateClassFromXMLString(Overlay, xml_string)

